﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YTSK.Model
{

    /// <summary>
    /// 单据格式表
    /// </summary>
    [Serializable]
    public partial class Voucher
    {
        public Voucher()
        { }
        #region Model
        private int _autoid;
        private string _vouchercode;
        private string _fieldcode;
        private string _fieldtitle;
        private string _fieldtype;
        private string _controltype;
        private int _ileft;
        private int? _itop;
        private int? _iwidth;
        private int? _iheight;
        private bool _bvisible;
        private int? _bmodify;
        private string _cdefaultvalue;
        private bool _bneed;
        private int? _ihead;
        private int? _iorder;
        private string _modeex;
        private string _cformat;
        private int? _ialign;
        private string _footcount;
        /// <summary>
        ///  自动编号
        /// </summary>
        public int AutoID
        {
            set { _autoid = value; }
            get { return _autoid; }
        }
        /// <summary>
        /// 单据名称
        /// </summary>
        public string VoucherCode
        {
            set { _vouchercode = value; }
            get { return _vouchercode; }
        }
        /// <summary>
        /// 列名
        /// </summary>
        public string FieldCode
        {
            set { _fieldcode = value; }
            get { return _fieldcode; }
        }
        /// <summary>
        /// 列头
        /// </summary>
        public string FieldTitle
        {
            set { _fieldtitle = value; }
            get { return _fieldtitle; }
        }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string FieldType
        {
            set { _fieldtype = value; }
            get { return _fieldtype; }
        }
        /// <summary>
        /// 控件类型:input/date/select/datetime/numberbox/combotree/combogrid
        /// </summary>
        public string ControlType
        {
            set { _controltype = value; }
            get { return _controltype; }
        }
        /// <summary>
        /// 左边位置
        /// </summary>
        public int iLeft
        {
            set { _ileft = value; }
            get { return _ileft; }
        }
        /// <summary>
        /// 上边位置
        /// </summary>
        public int? iTop
        {
            set { _itop = value; }
            get { return _itop; }
        }
        /// <summary>
        /// 右边位置
        /// </summary>
        public int? iWidth
        {
            set { _iwidth = value; }
            get { return _iwidth; }
        }
        /// <summary>
        /// 下边位置
        /// </summary>
        public int? iHeight
        {
            set { _iheight = value; }
            get { return _iheight; }
        }
        /// <summary>
        /// 是否可见
        /// </summary>
        public bool bVisible
        {
            set { _bvisible = value; }
            get { return _bvisible; }
        }
        /// <summary>
        /// 是否允许修改:0-不允许；1-新增和修改都可以修改；2-新增可以修改；3-修改可以修改
        /// </summary>
        public int? bModify
        {
            set { _bmodify = value; }
            get { return _bmodify; }
        }
        /// <summary>
        /// 默认值
        /// </summary>
        public string cDefaultValue
        {
            set { _cdefaultvalue = value; }
            get { return _cdefaultvalue; }
        }
        /// <summary>
        /// 是否必须录入
        /// </summary>
        public bool bNeed
        {
            set { _bneed = value; }
            get { return _bneed; }
        }
        /// <summary>
        /// 类型：1-表头项目；2以上表体项目，
        /// </summary>
        public int? iHead
        {
            set { _ihead = value; }
            get { return _ihead; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int? iOrder
        {
            set { _iorder = value; }
            get { return _iorder; }
        }
        /// <summary>
        /// 检验公式
        /// </summary>
        public string ModeEx
        {
            set { _modeex = value; }
            get { return _modeex; }
        }
        /// <summary>
        /// 数据格式
        /// </summary>
        public string cFormat
        {
            set { _cformat = value; }
            get { return _cformat; }
        }
        /// <summary>
        /// 对齐方式
        /// </summary>
        public int? iAlign
        {
            set { _ialign = value; }
            get { return _ialign; }
        }
        /// <summary>
        /// 合计公式
        /// </summary>
        public string FootCount
        {
            set { _footcount = value; }
            get { return _footcount; }
        }
        #endregion Model

    }
}
